font chooser: Plug a memory leak
authorMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jan 2018 03:24:21 +0000 (22:24 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 5 Jan 2018 03:24:21 +0000 (22:24 -0500)
We were leaking the hb_font object.

gtk/gtkfontchooserwidget.c

index 7b2f232670318e4a1d19e5cac696b830410b3804..6aff6beeaf4d5751e1c3da093565befe2757c843 100644 (file)
@@ -2086,7 +2086,7 @@ gtk_font_chooser_widget_update_font_features (GtkFontChooserWidget *fontchooser)
             }
         }
 
-      hb_face_destroy (hb_face);
+      hb_font_destroy (hb_font);
     }
 
   pango_fc_font_unlock_face (PANGO_FC_FONT (pango_font));